package com.lhf.userservice.vo;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import org.springframework.util.CollectionUtils;

import java.io.Serializable;
import java.util.List;

/**
 * 权限(FvsSysPer)表实体类
 *
 * @author liuhf
 * @since 2021-03-29 16:02:05
 */
@SuppressWarnings("serial")
public class FvsSysPerVO {
    //主键
    private Long pid;
    //权限
    private String per;
    //权限名
    private String perName;
    //权限图标
    private String pIcon;
    //父级权限ID
    private Long parent;
    //权限类型 0菜单 1按钮
    private Integer type;
    //请求路径
    private String path;
    //子集权限
    private List<FvsSysPerVO> children;

    /**
     * 路由
     */
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private FvsSysRouterVO route;

    public Long getPid() {
        return pid;
    }

    public void setPid(Long pid) {
        this.pid = pid;
    }

    public String getPer() {
        return per;
    }

    public void setPer(String per) {
        this.per = per;
    }

    public String getPerName() {
        return perName;
    }

    public void setPerName(String perName) {
        this.perName = perName;
    }

    public String getpIcon() {
        return pIcon;
    }

    public void setpIcon(String pIcon) {
        this.pIcon = pIcon;
    }

    public Long getParent() {
        return parent;
    }

    public void setParent(Long parent) {
        this.parent = parent;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public List<FvsSysPerVO> getChildren() {
        return children;
    }

    public void setChildren(List<FvsSysPerVO> children) {
        this.children = children;
    }

    public FvsSysRouterVO getRoute() {
        return route;
    }

    public void setRoute(FvsSysRouterVO route) {
        this.route = route;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

}
